prototype.jia=function(b){return this.source?this.source.subscribe(b):E3.EMPTY}; var qYj=function(){E3.call(this)};A(qYj,E3);qYj.EMPTY=E3.EMPTY;qYj.prototype.hp=function(){return this};var rYj=function(b,c){E3.call(this);this.Sy=b;this.ha=c;this.kK=!1};A(rYj,qYj);rYj.EMPTY=qYj.EMPTY;rYj.prototype.hp=function(b,c){c=void 0===c?0:c;if(this.closed)return this;this.state=b;var d=this.id;b=this.Sy;null!=d&&(this.id=sYj(this,d,c));this.kK=!0;this.delay=c;(d=this.id)||(c=void 0===c?0:c,d=setInterval(b.flush.bind(b,this),c));this.id=d;return this};var sYj=function(b,c,d){d=void 0===d?0:d;if(null!==d&&b.delay===d&&!1===b.kK)return c;clearInterval(c)}; rYj.prototype.execute=function(b,c){if(this.closed)return Error("mja");this.kK=!1;if(b=this.ra(b,c))return b;!1===this.kK&&null!=this.id&&(this.id=sYj(this,this.id,null))};rYj.prototype.ra=function(b){var c=!1,d=void 0;try{this.ha(b)}catch(e){c=!0,d=!!e&&e||Error(e)}if(c)return this.unsubscribe(),d};rYj.prototype.awa=function(){var b=this.id,c=this.Sy.actions,d=c.indexOf(this);this.state=this.ha=null;this.kK=!1;this.Sy=null;-1!==d&&c.splice(d,1);null!=b&&(this.id=sYj(this,b,null));this.delay=null}; var tYj=function(b,c){c=void 0===c?tYj.now:c;this.ha=b;this.now=c};tYj.prototype.hp=function(b,c,d){c=void 0===c?0:c;return(new this.ha(this,b)).hp(d,c)};tYj.now=function(){return Date.now()};var uYj=function(b,c){c=void 0===c?tYj.now:c;tYj.call(this,b,function(){return uYj.mT&&uYj.mT!==d?uYj.mT.now():c()});var d=this;this.actions=[];this.active=!1};A(uYj,tYj);uYj.now=tYj.now;uYj.prototype.hp=function(b,c,d){c=void 0===c?0:c;return uYj.mT&&uYj.mT!==this?uYj.mT.hp(b,c,d):tYj.prototype.hp.call(this,b,c,d)}; uYj.prototype.flush=function(b){var c=this.actions;if(this.active)c.push(b);else{var d;this.active=!0;do if(d=b.execute(b.state,b.delay))break;while(b=c.shift());this.active=!1;if(d){for(;b=c.shift();)b.unsubscribe();throw d;}}}; var nVj=new uYj(rYj);var vYj=function(b,c,d){this.apiKey=b;this.gE=c;this.ra=d};vYj.prototype.b4=function(){var b={},c=GXj();null!=c&&(b.Authorization=c.scheme+" "+c.hash);b[Rka]=String(this.gE||0);(c=this.ra)&&(b[Ska]=c);return b};vYj.prototype.wa=function(){return{key:this.apiKey}};vYj.prototype.Aa=r(!0);vYj.prototype.ha=r(11);var wYj=function(b,c){this.ra=b;this.Ba=c};wYj.prototype.b4=function(){var b={};b.Authorization="OAuth "+this.ra.Ub();var c=this.Ba;c&&(b[Ska]=c);return b};wYj.prototype.wa=function(){return{}}; wYj.prototype.Aa=r(!0);wYj.prototype.ha=r(11);var xYj=function(b,c){this.apiKey=b;this.ra=c};xYj.prototype.b4=function(){return{}};xYj.prototype.wa=function(){return{key:this.apiKey}};xYj.prototype.Aa=r(!1);xYj.prototype.ha=r(13);var yYj=function(){var b=this;this.wa=new Set;this.status=new lVj(function(c){b.wa.add(c);if(4===b.getState())ZUj(function(){c.complete()});else{var d=b.Fa;d&&ZUj(function(){c.next(d)})}return function(){return b.wa["delete"](c)}})}; yYj.prototype.stop=function(){this.wa.forEach(function(b){ZUj(function(){return b.complete()})});return Promise.resolve()};yYj.prototype.GHa=function(){if(WXj(this)){var b=new hzi;cC(b,1,0,0);this.Fa=b;zYj(this,b)}};yYj.prototype.onError=function(b,c){WXj(this)&&(b=c.ha,c=new hzi,cC(c,1,$Uj(b),0),this.Fa=c,zYj(this,c))};yYj.prototype.bK=m(); var zYj=function(b,c){var d={};b=ip(b.wa);for(var e=b.next();!e.done;d={dNa:d.dNa},e=b.next())d.dNa=e.value,ZUj(function(f){return function(){f.dNa.next(c)}}(d))},WXj=function(b){return 1===b.getState()||2===b.getState()},AYj=dp(wi); var BYj={send:function(b,c,d,e,f,g,k){Lz(b,c,d,e,f,g,k)}};var CYj=function(b){YB(this,b,0,-1,null,null)};C(CYj,WB);CYj.prototype.getId=function(){return P(this,1)};CYj.prototype.Me=function(b){return Q(this,1,b)};var EYj=function(b){YB(this,b,0,-1,DYj,null)};C(EYj,WB);var DYj=[2];var FYj=function(b){YB(this,b,0,-1,null,null)};C(FYj,WB);var GYj=function(b){YB(this,b,0,-1,null,null)};C(GYj,WB);var HYj=function(b){YB(this,b,0,-1,null,null)};C(HYj,WB);var IYj=function(b){YB(this,b,0,-1,null,null)};C(IYj,WB);var JYj=function(b){YB(this,b,0,-1,null,null)};C(JYj,WB);var KYj=new Set([1,2]),LYj=new Set([408,429]),zVj=function(b,c){var d=void 0===d?BYj:d;this.ra=b;this.ha=c;this.a9=d};zVj.prototype.subscribe=function(b){var c=fC(b,HYj,1);Q(c,4,this.ha.ha());return MYj(this,"/v1/subscriptions",b,GYj)};zVj.prototype.unsubscribe=function(b){Q(b,4,this.ha.ha());var c=new IYj;hC(c,1,b);return MYj(this,"/v1/deleteSubscriptions",c,JYj)}; zVj.prototype.sP=function(b){var c=new EYj;b=ip(b);for(var d=b.next();!d.done;d=b.next())b9a(c,2,d.value,CYj,void 0);return MYj(this,"/v1/acknowledgments",c,FYj)}; var MYj=function(b,c,d,e){var f=new Ow(b.ra);Rw(f,c);c=ip(Object.entries(b.ha.wa()));for(var g=c.next();!g.done;g=c.next()){var k=ip(g.value);g=k.next().value;k=k.next().value;Vw(f,g,k)}var l={"Content-type":tna};Object.assign(l,b.ha.b4());var n=d.Uc();return new Promise(function(q,u){b.a9.send(f,function(){var x=-1===this.getStatus()?void 0:this.getStatus();if(this.Hk())try{q(kC(e,this.hj()))}catch(T){u({code:4,message:"Failed to deserialize response from Doorman server as "+(e+Lb)+this.hj(),status:x, KAb:!0})}else{var B=this.Ew(),F=this.getLastError();var O=this.getStatus();O=KYj.has(this.Ew())||400<=O&&499>=O&&!LYj.has(O);u({code:B,message:F,status:x,KAb:O})}},Ud,n,l,2E4,b.ha.Aa())})}; zBa();DBa();var NYj=function(){this.size=0;this.hF=new Map};t=NYj.prototype;t.clear=function(){this.hF.clear();this.size=this.hF.size};t["delete"]=function(b){b=this.hF["delete"](JSON.stringify(b));this.size=this.hF.size;return b};t.forEach=function(b,c){var d=this;void 0!==c&&(b=b.bind(c));this.hF.forEach(function(e,f){f=JSON.parse(f);b(e,f,d)})};t.get=function(b){return this.hF.get(JSON.stringify(b))};t.has=function(b){return this.hF.has(JSON.stringify(b))}; t.set=function(b,c){this.hF.set(JSON.stringify(b),c);this.size=this.hF.size;return this};NYj.prototype[Symbol.iterator]=function(){return this.entries()};NYj.prototype.entries=function(){return new OYj(this.hF.entries(),function(b){var c=ip(b);b=c.next().value;c=c.next().value;return[JSON.parse(b),c]})};NYj.prototype.keys=function(){return new OYj(this.hF.keys(),JSON.parse)};NYj.prototype.values=function(){return this.hF.values()};zBa();DBa();var OYj=function(b,c){this.hF=b;this.ha=c}; OYj.prototype[Symbol.iterator]=function(){return this};OYj.prototype.next=function(){var b=this.hF.next(),c=b.value;b=b.done;return{value:b?void 0:this.ha(c),done:b}}; var PYj=function(b,c,d){this.name=b;this.wa=c;this.ra=d},QYj=function(b,c){return new PYj(c,!1,b)};PYj.ha=function(b){var c="{";b.ra&&(c=c.concat(" legacySource: "+b.ra+","));return c=c.concat(' name: "'+encodeURIComponent(b.name)+'"'," "+(b.wa?"(private)":"(public)")+" }")}; var RYj=function(){FO.call(this)};C(RYj,FO);var SYj=null,TYj=function(){FO.call(this)};C(TYj,FO);var UYj=null;TYj.prototype.rm=function(){return HO(this,1)};var VYj=function(){FO.call(this)};C(VYj,FO);var WYj=null;VYj.prototype.rm=function(){return HO(this,1)};VYj.prototype.tba=function(){return HO(this,2)};var XYj=function(){FO.call(this)};C(XYj,FO);var YYj=null;XYj.prototype.zo=function(){return HO(this,1)};XYj.prototype.Yf=function(){return HO(this,2)};XYj.prototype.Wt=function(b){IO(this,2,b)}; var ZYj={SUCCESS:1,n9b:2,a5b:3},G3=function(){FO.call(this)};C(G3,FO);var $Yj=null;G3.prototype.getSource=function(){return HO(this,1)};G3.prototype.getName=function(){return HO(this,2)};G3.prototype.Tg=function(b){IO(this,2,b)};var aZj=function(){FO.call(this)};C(aZj,FO);var bZj=null;aZj.prototype.uE=function(){return HO(this,1)};aZj.prototype.EY=function(){return HO(this,2)};var cZj=function(){FO.call(this)};C(cZj,FO);var dZj=null;cZj.prototype.vy=function(){return HO(this,1)}; cZj.prototype.rm=function(){return HO(this,3)};cZj.prototype.ul=function(){return HO(this,4)};var eZj=function(){FO.call(this)};C(eZj,FO);var fZj=null;eZj.prototype.vy=function(){return HO(this,1)};var gZj={xLd:1,lSd:2},hZj=function(){FO.call(this)};C(hZj,FO);var iZj=null,jZj=function(){FO.call(this)};C(jZj,FO);var kZj=null;jZj.prototype.fe=function(){return HO(this,6)};jZj.prototype.uE=function(){return HO(this,7)};var lZj=function(){FO.call(this)};C(lZj,FO);var mZj=null,nZj=function(){FO.call(this)}; C(nZj,FO);var oZj=null;nZj.prototype.uE=function(){return HO(this,1)};var pZj={gnd:1,hId:2},qZj=function(){FO.call(this)};C(qZj,FO);var rZj=null,sZj=function(){FO.call(this)};C(sZj,FO);var tZj=null,uZj=function(){FO.call(this)};C(uZj,FO);var vZj=null,wZj=function(){FO.call(this)};C(wZj,FO);var xZj=null,yZj=function(){FO.call(this)};C(yZj,FO);var zZj=null;yZj.prototype.getName=function(){return HO(this,1)};yZj.prototype.Tg=function(b){IO(this,1,b)};yZj.prototyp